package com.yunxin.core.infra.persistence.mapper.page;

import com.baomidou.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author zero°
 * @since 2023-05-25
 */
@DS("core")
@Mapper
public interface PageCacheExtendMapper extends PageCacheMapper {

    /**
     * 根据发布状态获取最新的页面缓存数据
     * @param pageCode pageCode
     * @param releaseStatus releaseStatus
     * @return PageCache
     */
    String getLastPageCache(@Param("pageCode") String pageCode,
                            @Param("releaseStatus") Integer releaseStatus);

}
